import request from '@/utils/request'
// 列表
export function getList(data, page) {
    return request({
        url: '/Contract/contract_template_list/' + (page ? page : 1),
        method: 'post',
        data: data
    })
}
// 分页
export function getPage(data) {
    return request({
        url: '/Contract/contract_template_page',
        method: 'post',
        data: data
    })
}
export function state(data) {
    return request({
        url: '/Contract/template_enable',
        method: 'post',
        data: data
    })
}
export function brandList(data) {
    return request({
        url: '/General/get_brand_second',
        method: 'post',
        data: data
    })
}
export function storeList(data) {
    return request({
        url: '/General/get_store',
        method: 'post',
        data: data
    })
}
export function getContract(data) {
    return request({
        url: '/Contract/contract_template_info',
        method: 'post',
        data: data
    })
}
export function saveContract(data) {
    return request({
        url: '/Contract/contract_upload',
        method: 'post',
        data: data
    })
}
export function saveStore(data) {
    return request({
        url: '/Contract/template_store_config',
        method: 'post',
        data: data
    })
}